<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="full-screen" content="yes">
  <meta name="x5-fullscreen" content="true">
  <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no,viewport-fit=cover">
  <!--<link rel="shortcut icon" type="image/x-icon" href="src/assets/images/logo.png">-->
  <title>老年大学</title>
  <script type="text/javascript">
    var deviceWidth = document.documentElement.clientWidth;
    if (deviceWidth > 750) deviceWidth = 750;
    document.documentElement.style.fontSize = document.documentElement.clientWidth / 7.5 + 'px';
    var remSize = document.documentElement.clientWidth / 7.5
  </script>
  <script>
    /***
    屏幕宽度发生变化的时候重置字体大小
    ***/
    // 当屏幕变化时
    window.onresize = resizeFont;
    resizeFont();
    // 计算当前根元素的字体大小  =  当前屏幕宽度 * 100（根元素字体大小） / 750 (设计稿尺寸)
    function resizeFont() {
      var fontSize = document.documentElement.clientWidth * 100 / 750
      if (fontSize > 100) {
        fontSize = 100
      }
      document.documentElement.style.fontSize = fontSize + 'px'
    }
    /**
     * 处理iOS 微信客户端6.7.4 键盘收起页面未下移bug
     */
    ;(/iphone|ipod|ipad/i.test(navigator.appVersion)) && document.addEventListener('blur', (e) => {
        // 这里加了个类型判断，因为a等元素也会触发blur事件
        ['input', 'textarea'].includes(e.target.localName) && document.body.scrollIntoView(false)
    }, true)
    // 百度统计
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?e4b319829002e01bfd4fa4aafda74795";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
    function getLocation(){
      if (navigator.geolocation){
        // navigator.geolocation.getCurrentPosition(showPosition,showError);
      }else{
        alert("浏览器不支持地理定位。");
      }
    }
    getLocation();
  </script>
</head>

<body>
  <div id="app" style="bakcground:red;">
    <router-view></router-view>
  </div>
  <!-- built files will be auto injected -->
</body>

</html>
